// 导入封装的组件
import uploader from "./src/components/uploader/uploader"
import uploaderBtn from './src/components/uploader/uploader-btn'

const install = function(Vue, opts = {}) {
  if (install.installed) return;
  Vue.component(uploader.name,uploader);
  Vue.component(uploaderBtn.name,uploaderBtn);
};

// auto install
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue) // 通过use方式全部引入
}

const API = {
  install
};

export default API
